<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateActivitysTable extends Migration {
	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up() {
		Schema::create('activitys', function (Blueprint $table) {
			$table->increments('id');
			$table->string('name', 255)->comment('活动名称');
			$table->string('image', 255)->comment('活动图片');
			$table->integer('days')->comment('活动时间');
			$table->string('product', 255)->comment('活动商品');
			$table->boolean('start')->default(false)->comment('活动是否开始');
			$table->boolean('status')->default(true)->comment('活动状态');
			$table->dateTime('start_time')->nullable()->comment('活动开始时间');
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down() {
		Schema::dropIfExists('activitys');
	}
}
